package com.xyzwps.mvckotlin.dao.mapper

import com.xyzwps.mvckotlin.dao.model.Article
import org.apache.ibatis.annotations.Mapper
import org.apache.ibatis.annotations.Param

@Mapper
interface IArticleMapper {

    fun getById(id: Long): Article?

    fun update(article: Article)

    fun insert(article: Article)

    fun getArticlesBeforeId(@Param("id") id: Long?, @Param("size") size: Int): List<Article>?
}
